package com.design.过滤器模式;

import java.util.ArrayList;
import java.util.List;

public class FreeFlowFilter implements Filter{

	@Override
	public List<User> filtrate(List<User> users) {
		List<User> cs = new ArrayList<User>();
		for(User user:users) {
			if(user.getId() % 3 == 0) {
				cs.add(user);
			}
		}
		return cs;
	}

}
